<?php date_default_timezone_set('Asia/Shanghai');$sname = $_SERVER['SCRIPT_NAME'];$slash_pos = strpos($sname,'/',2);$BASE = $_SERVER['DOCUMENT_ROOT'].substr($sname,0,$slash_pos+1);require_once($BASE.'config.php');require_once($BASE.'db.php');$db = new MySQL();?>